To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 20 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
👀 Reading hidden code
uuids_with_hidden_message = filter(!isnothingto_string, registered_uuids)
83.5 ms
👀 Reading hidden code
[
to_string(uuid) => r.pkgs[uuid]
]
60.2 ms
👀 Reading hidden code
Enter cell code...
68.4 μs
👀 Reading hidden code
import Pkg
192 μs
👀 Reading hidden code
Pkg.Registry.status()
❔
Registry Status 
 [23338594] General
181 ms
_get_registry_paths

Return paths to all installed registries.

👀 Reading hidden code
# (⛔️ Internal API)
"Return paths to all installed registries."
_get_registry_paths() = @static if isdefined(Pkg, :Types) && isdefined(Pkg.Types, :registries)
Pkg.Types.registries()
elseif isdefined(Pkg, :Registry) && isdefined(Pkg.Registry, :reachable_registries)
registry_specs = Pkg.Registry.reachable_registries()
[s.path for s in registry_specs]
elseif isdefined(Pkg, :Types) && isdefined(Pkg.Types, :collect_registries)
registry_specs = Pkg.Types.collect_registries()
[s.path for s in registry_specs]
else
String[]
end
1.6 ms
_get_registries (generic function with 1 method)
# (⛔️ Internal API)
_get_registries() = map(_get_registry_paths()) do r
@static if isdefined(Pkg, :Registry) && isdefined(Pkg.Registry, :RegistryInstance)
Pkg.Registry.RegistryInstance(r)
else
r => Pkg.Types.read_registry(joinpath(r, "Registry.toml"))
end
end
👀 Reading hidden code
990 μs
rs = _get_registries()
👀 Reading hidden code
165 μs
Registry: "General" at "/home/runner/.julia/registries/General.toml":
  uuid: 23338594-aafe-5451-b93e-139f81909106
  repo: https://github.com/JuliaRegistries/General.git
  git-tree-sha1: 2bcb0a1806c6847d7de144aee5e48cce6cd33338
  packages: 12303
r = last(rs)
👀 Reading hidden code
14.3 μs
registered_uuids = keys(r.pkgs)
👀 Reading hidden code
18.2 μs

👀 Reading hidden code
67.1 μs
UUID("6e696c72-6542-2067-7265-42206c756150")
u2 = Base.UUID(reinterpret(Int128, codeunits("Paul Berg Berlin")) |> first)
👀 Reading hidden code
40.9 ms
"Paul Berg Berlin"
to_string(u2)
👀 Reading hidden code
15.5 μs
using UUIDs
👀 Reading hidden code
146 μs
UUID("7cc45869-7501-5eee-bdea-0790c847d4ef")
u = UUID("7cc45869-7501-5eee-bdea-0790c847d4ef")

👀 Reading hidden code
15.3 μs
to_string(u)
👀 Reading hidden code
13.2 μs
0x7cc4586975015eeebdea0790c847d4ef
u.value
👀 Reading hidden code
12.1 μs
to_string (generic function with 1 method)
function to_string(uuid::UUID)
chars = reinterpret(UInt8, [uuid.value])
result = String(chars)
if isascii(result) && !any(iscntrl, result)
result
else
nothing
end
end
👀 Reading hidden code
642 μs

👀 Reading hidden code
67.2 μs

👀 Reading hidden code
66.8 μs
keys(r.pkgs)
👀 Reading hidden code
13.1 μs